layui.use(['form','layer','laydate','table','laytpl'],function(){
    var form = layui.form,
        layer = parent.layer === undefined ? layui.layer : top.layer,
        $ = layui.jquery,
        table = layui.table;

    //微信用户列表列表
    var tableIns = table.render({
        elem: '#wxuser_list',
        url : '/listWxUser',
        cellMinWidth : 95,
        page : true,
        height : "full",
        id : "wxuser_list_table",
        limit : 20,
        limits : [20],
        cols : [[
            {field: 'id', title: '编号',  align:"center",width:150},
            {field: 'nickName', title: '昵称', align:'center'},
            {field: 'gender', title: '性别', align:'center',width:150, templet:"#wxuser_gender"},
            {field: 'language', title: '语言', align:'center',width:150},
            {field: 'city', title: '城市', align:'center',width:150},
            {field: 'province', title: '省份', align:'center',width:150},
            {field: 'country', title: '国家', align:'center',width:150}
        ]],
        response:{
            countName: 'total' //数据总数的字段名称，默认：count
            ,dataName: 'data' //数据列表的字段名称，默认：data
        }
    });
});